package cn.hyh.core.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * @auther :hyh
 * @desc :
 * @date :2019/7/11
 */

@Data
@Accessors(chain = true)
public class User{


        private Long id;
        private String name;
        private String password;
        private Integer age;
        private String email;
        private Date  lastLogin;

        @TableField(exist = false)    //表明该字段是在表中不存在的，insert时，即使设置了值也不会 插入值。
        private  String tag;


        @Override
        public String toString() {
                return "User{" +
                        "id=" + id +
                        ", name='" + name + '\'' +
                        ", age=" + age +
                        ", email='" + email + '\'' +
                        '}';
        }
}
